//
//  KeepModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/18.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "KeepModel.h"

@implementation KeepModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.price = [dict[@"price"] floatValue];
        self.productCount = [dict[@"productCount"] integerValue];
        self.productName = dict[@"productName"];
        self.productNo = dict[@"productNo"];
        self.residualStock = [dict[@"residualStock"] integerValue];
        self.status = [dict[@"status"] integerValue];
        self.thumbnailUrl = dict[@"thumbnailUrl"];
        self.type = [dict[@"type"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[KeepModel alloc]initWithDict:dict];
}

@end
